package com.egame.ewidget.utils;

import android.os.Build;

public class AndroidVersionUtil {

	private static final String TAG = AndroidVersionUtil.class.getSimpleName();

	public static final String ANDROID_4_2 = "4.2";
	public static final String ANDROID_4_2_1 = "4.2.1";
	public static final String ANDROID_3_2 = "3.2";

	public static final int API_16 = 16;
	public static final int API_17 = 17;

	public static boolean isAndroidApiLevel_16() {
		int api = Build.VERSION.SDK_INT;
//		LogUtil.d(TAG, "Android is " + api);
		return api == API_16;
	}

	public static boolean isAndroidApiLevel_17() {
		int api = Build.VERSION.SDK_INT;
//		LogUtil.d(TAG, "Android is " + api);
		return api == API_16;
	}

	public static boolean isAndroidApiLevel_17_OrHigher() {
		int api = Build.VERSION.SDK_INT;
//		LogUtil.d(TAG, "Android is " + api);
		return api >= API_17;
	}
}
